Optimal. Leaf size=39 \[ \tan ^{-1}\left (\sqrt{\frac{1}{2} \left (3+\sqrt{5}\right )} x\right )-\tan ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{5}}} x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0327162, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {1163, 203} \[ \tan ^{-1}\left (\sqrt{\frac{1}{2} \left (3+\sqrt{5}\right )} x\right )-\tan ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{5}}} x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1163
Rule 203
Rubi steps
\begin{align*} \int \frac{1-x^2}{1+3 x^2+x^4} \, dx &=\frac{1}{2} \left (-1-\sqrt{5}\right ) \int \frac{1}{\frac{3}{2}+\frac{\sqrt{5}}{2}+x^2} \, dx+\frac{1}{2} \left (-1+\sqrt{5}\right ) \int \frac{1}{\frac{3}{2}-\frac{\sqrt{5}}{2}+x^2} \, dx\\ &=-\tan ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{5}}} x\right )+\tan ^{-1}\left (\sqrt{\frac{1}{2} \left (3+\sqrt{5}\right )} x\right )\\ \end{align*}
Mathematica [A] time = 0.006976, size = 10, normalized size = 0.26 \[ \tan ^{-1}\left (\frac{x}{x^2+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.054, size = 104, normalized size = 2.7 \begin{align*} -2\,{\frac{1}{-2+2\,\sqrt{5}}\arctan \left ( 4\,{\frac{x}{-2+2\,\sqrt{5}}} \right ) }+2\,{\frac{\sqrt{5}}{-2+2\,\sqrt{5}}\arctan \left ( 4\,{\frac{x}{-2+2\,\sqrt{5}}} \right ) }-2\,{\frac{\sqrt{5}}{2+2\,\sqrt{5}}\arctan \left ( 4\,{\frac{x}{2+2\,\sqrt{5}}} \right ) }-2\,{\frac{1}{2+2\,\sqrt{5}}\arctan \left ( 4\,{\frac{x}{2+2\,\sqrt{5}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{x^{2} - 1}{x^{4} + 3 \, x^{2} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.2397, size = 42, normalized size = 1.08 \begin{align*} \arctan \left (x^{3} + 2 \, x\right ) - \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.098433, size = 10, normalized size = 0.26 \begin{align*} - \operatorname{atan}{\left (x \right )} + \operatorname{atan}{\left (x^{3} + 2 x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15351, size = 35, normalized size = 0.9 \begin{align*} \frac{1}{4} \, \pi \mathrm{sgn}\left (x\right ) - \frac{1}{2} \, \arctan \left (\frac{x^{4} + x^{2} + 1}{2 \,{\left (x^{3} + x\right )}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]